/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ee.cybertron.energon.components;

/**
 *
 * @author stevenziggiz
 */
public enum ComponentType {

    TEXTFIELD(CyberInputText.class),
    COMBOBOX(CyberSelectOneMenu.class),
    BUTTON(CyberCommandButton.class);
    
    private Class idComponentType;

    private ComponentType(Class idComponentType) {
        this.idComponentType = idComponentType;
    }

//    public ComponentType (String value){
//        int size;
//        ComponentType[] componentList = ComponentType.values();
//        size = componentList.length;
//        for (int i = 0; i < size; i++) {
//            componentList
//        }
//    }
    /**
     * @return the idComponentType
     */
    public Class getIdComponentType() {
        return idComponentType;
    }

//    public static ComponentType fromString(String value) {
//        if (value != null) {
//            for (ComponentType b : ComponentType.values()) {
//                if (value.equalsIgnoreCase(b.idComponentType)) {
//                    return b;
//                }
//            }
//        }
//        return null;
//    }
}
